from sqlalchemy import Column, Integer, String, Text

from models.base import BaseDbModel


class SystemConfig(BaseDbModel):
    __tablename__ = "system_config"
    __table_args__ = {
        "comment": "系统配置表",
    }
    id = Column(Integer, primary_key=True, index=True, autoincrement=True)
    type = Column(String(20), index=True, nullable=False, comment="类型")
    name = Column(String(255), nullable=False, comment="名称")
    display_name = Column(String(255), comment="显示名")
    value = Column(Text, comment="值")
